package com.hsylient.ObserverPattern;

/**
 * 观察者
 *
 */
public abstract class MyObserver {

    protected String name;
    protected MySubject subject;

    public MyObserver(String name, MySubject subject) {
        this.name = name;
        this.subject = subject;
    }

    /**
     * 更新
     */
    public abstract void update();

}
